import React from 'react';
import Image from './components/Image';
//导入 css 文件
export default class App extends React.Component{
    state = {
        src: 'https://api.ixiaowai.cn/api/api.php'
    }

    render(){
        return <div>
            <Image src={this.state.src}  changeSrc={this.changeSrc} />
        </div>
    }

    changeSrc = () => {
        this.setState({
            src: 'https://api.ixiaowai.cn/api/api.php?t='+Date.now()
        })
    }
}